﻿<%@ Page Title="" Language="C#" MasterPageFile="Miembros.Master" AutoEventWireup="true" CodeBehind="Usuarios.aspx.cs" Inherits="UI.Usuarios" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
<p>Administracion de Usuarios</p>
    <asp:Label ID="Label1" runat="server" Text="Usuario Existente: "></asp:Label>&nbsp&nbsp
    <asp:DropDownList ID="DDL_usuariosExistentes" runat="server" 
        onselectedindexchanged="DDL_usuariosExistentes_SelectedIndexChanged" AutoPostBack="True" AppendDataBoundItems="True">
    </asp:DropDownList>
    <br />
    <asp:Label ID="Lbl_nombre" runat="server" Text="Nombre: "></asp:Label>&nbsp&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:TextBox ID="TextB_nombre" runat="server"></asp:TextBox>
    <br />
    <asp:Label ID="Lb_apellido" runat="server" Text="Apellido: "></asp:Label>&nbsp&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:TextBox ID="TextB_apellido" runat="server"></asp:TextBox>
    <br />
    <asp:Label ID="Lbl_mail" runat="server" Text="e-Mail: "></asp:Label>&nbsp&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:TextBox ID="TextB_mail" runat="server"></asp:TextBox>
    <br />
    <asp:Label ID="Lbl_Usuario" runat="server" Text="Usuario: "></asp:Label>&nbsp&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:TextBox ID="TextB_Usuario" runat="server"></asp:TextBox>
    <br />
    <asp:Label ID="Lbl_password" runat="server" Text="Password: "></asp:Label>&nbsp&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:TextBox ID="TextB_password" runat="server" Height="16px" 
        TextMode="Password" ></asp:TextBox>
    <br />
    <asp:Label ID="Lbl_rol" runat="server" Text="Rol: "></asp:Label>&nbsp&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:DropDownList ID="DDL_rol" runat="server" >
    </asp:DropDownList>
    <br /><br />
    <asp:Button ID="Button_modificar" runat="server" Text="Modificar" 
        onclick="Button_modificar_Click" />&nbsp
    <asp:Button ID="Button_agregar" runat="server" Text="Agregar" 
        onclick="Button_agregar_Click" />&nbsp
    <asp:Button ID="Button_eliminar" runat="server" Text="Eliminar" 
        onclick="Button_eliminar_Click" CausesValidation="false"/>
    <!-- Vlidadores-->
    <p>
        <asp:RequiredFieldValidator ID="NombreRequeridoValidator" runat="server" 
            ErrorMessage="El Nombre es requerido." ControlToValidate="TextB_nombre" />
        <asp:RequiredFieldValidator ID="ApellidoRequeridoValidator" runat="server" 
            ErrorMessage="El Apellido es requerido." ControlToValidate="TextB_apellido"/>
        <asp:RequiredFieldValidator ID="EmailRequeridoValidator" runat="server" 
            ErrorMessage="El Email es requerido." ControlToValidate="TextB_mail"/>
        <asp:RequiredFieldValidator ID="NombreUsuarioRequeridoValidator" runat="server" 
            ErrorMessage="El Nombre de Usuario es requerido." ControlToValidate="TextB_Usuario"/>
        <asp:RequiredFieldValidator ID="PasswordRequeridoValidator" runat="server" 
            ErrorMessage="El Password es requerido." ControlToValidate="TextB_password"/>
    </p>
    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
